<template>
  <div class="container">
    <Category title="游戏">
      <template slot-scope="data">
        <ul>
          <li v-for="(item , index) in data.games" :key="index">{{item}}</li>
        </ul>
        <h4>{{data.msg}}</h4>
      </template>
    </Category>

    <Category title="游戏">
      <!-- 此处使用结构赋值 -->
      <template slot-scope="{games}">
        <ol>
          <li v-for="(item , index) in games" :key="index">{{item}}</li>
        </ol>
      </template>
    </Category>

    <Category title="游戏">
      <template slot-scope="{msg}">
        <h4>{{msg}}</h4>
      </template>
    </Category>
  </div>
</template>

<script>
  import Category from './components/Category.vue'
  export default {
    components: {Category},
    name:'App', 
  }
</script>
<style scoped>
  .container,.foot{
    display: flex;
    justify-content: space-around;
  }
  img{
    width: 100%;
  }
  video{
    width: 100%;
  }
  
</style>